![]() | Building Object Hierarchies | Hierarchy Inference | ![]() |
A Hierarchy is normally built at design-time, by defining the objects which make up the Hierarchy (Nodes). Hierarchies can also be "dynamic"" by allowing more instances of a pre-defined object (included at design-time) to be "replicated" at runtime. This is achieved using the Add method together with the full reference of an already existing object. The execution of the Add method must occur before the "pre-defined" object has been encountered in the hierarchy. For example, an Object Harddisk defined in a Hierarchy (MyHierarchy) can be replicated at run time to offer two separate selections of "Harddisk".
@Do MyHierarchy.Hardware.Harddisk.Add